﻿// /*
//  * @Author: wanyiming
//  * @Date:2024-03-27-23:14
//  * @Description:
//  */

using UnityEngine.EventSystems;

namespace Code.Utility.InputUtils
{
    public static class InputMappingUtils
    {
        
        public enum InputEnum
        {
            LeftClick,
            RightClick,
            Other
        }

        public static InputEnum GetInputEnum(PointerEventData eventData)
        {
            if (eventData.button == PointerEventData.InputButton.Left)
            {
                return InputEnum.LeftClick;
            }

            if (eventData.button == PointerEventData.InputButton.Right)
            {
                return InputEnum.RightClick;
            }

            return InputEnum.Other;
        }




    }
}